#include "Shape.h"
#include "Renderer.h"
//----------------------------------------------------------------
ns::Shape::Shape ()
:
Entity2D()
{
	
}
//----------------------------------------------------------------
ns::Shape::~Shape()
{

}
//----------------------------------------------------------------
void ns::Shape::Draw (ns::Renderer* renderer)
{
	ns::Entity2D::Draw(renderer);
}
//----------------------------------------------------------------
void ns::Shape::setColor(int r,int g,int b)
{
	for (int i = 0; i < iCantVertices; i++)
	{
		m_pVertices[i].color = D3DCOLOR_XRGB(r, g, b);
	}
}
//----------------------------------------------------------------
void ns::Shape::setColorVertexTriangle(int i, int r,int g,int b)
{
	m_pVertices[i].color = D3DCOLOR_XRGB(r, g, b);
}
//----------------------------------------------------------------
void ns::Shape::setColorVertexBox(int i, int r,int g,int b)
{
	m_pVertices[i].color = D3DCOLOR_XRGB(r, g, b);
}